package server;

import java.util.HashMap;
import java.util.Map;

public class Context {

    private String name;

    private String docBase;

    private Map<String, Wrapper> wrappers = new HashMap<String,Wrapper>();

    public Context(String name, String docBase) {
        this.name = name;
        this.docBase = docBase;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDocBase() {
        return docBase;
    }

    public void setDocBase(String docBase) {
        this.docBase = docBase;
    }

    public Map<String, Wrapper> getWrappers() {
        return wrappers;
    }

    public void setWrappers(Map<String, Wrapper> wrappers) {
        this.wrappers = wrappers;
    }

    public Wrapper getWrapper(String name) {
        return wrappers.get(name);
    }
}
